Per-repo social cards for docs-site repos#23
Merged
Conversation
Two-panel green/cream 1280x640 og:image for the 7 docs-site repos, built on the project marks: green panel holds the repo mark, cream panel holds name, canonical tagline, and docs URL. Generated into brand/projects/<repo>/social-card.svg|png. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Five TDD tasks: GREEN_MUTED token, fit/wrap text helpers, DOCS_REPOS table + project_social_card, the docs-only render pass, and docs/architecture. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Generates a social card (1280×640
og:image) for each org repo that has alive docs site — built on the per-project marks. Two-panel composition: a green
panel with the repo's mark (cream + gold-dark) beside a cream panel holding the
repo name, its one-line tagline, and its docs URL. Output:
brand/projects/<repo>/social-card.svg+social-card.png, for the 7docs-site repos only.
The seven were determined by probing
https://<repo>.modern-python.org/(HTTP200):
modern-di,that-depends,lite-bootstrap,httpware,faststream-redis-timers,faststream-outbox,semvertag. The other ten don'tresolve and get no card.
Design
planning/changes/2026-06-30.01-per-repo-social-cards/design.mdplan.mdHow it's built
brand/build/tokens.py— newGREEN_MUTEDtoken (tagline colour).brand/build/projects.py:_measure/fit_text(auto-shrink a name to the column width) /wrap_text(greedy word-wrap) text helpers.
DOCS_REPOS: dict[str, str]— the 7 docs repos → taglines, verbatim fromprofile/README.md(the canonical one-liner, kept in sync with GitHubdescription + pyproject per the org's "three surfaces" rule).
project_social_card(repo, *, tagline)— composes the two-panel card.render_projectsgains a pass writingsocial-card.svg|pngforDOCS_REPOS.uv run python -m brand.build.render.Cards use only palette tokens (a test enforces it). 88 tests pass;
just check-planningOK. Architecture promoted inarchitecture/brand-marks.md.Notes
og:imagemeta is per-repo follow-up.DOCS_REPOSis a hand-maintained mirror of which repos have a docs site;re-probe and edit the table if that set changes.
🤖 Generated with Claude Code